package cn.itcast.jx.quartz;

import java.util.Date;
import java.util.List;

import cn.itcast.jx.domain.Contract;
import cn.itcast.jx.service.ContractService;
import cn.itcast.jx.util.MailUtils;

public class JobTest {
	
	private ContractService contractService;
	
	public void setContractService(ContractService contractService) {
		this.contractService = contractService;
	}

	private void exe() {
		System.out.println("正在扫描催货的合同。。。");
		String hql = "from Contract where to_char(shipTime,'yyyymmdd')='20151021'";
		List<Contract> list = contractService.find(hql, Contract.class, null);
		
		for (Contract con : list) {
			
		}
	}
	
}
